from django.shortcuts import render
from u17web.settings import mongo_db

def manhua(request):
    context = {}
    # 查询mongodb 数据
    result = list(mongo_db['comic'].find(limit=50))
    context = {'comic_list': result}
    return render(request, 'manhua.html', context)
